From 61280e66b9f04b2c7d451a58fc768b4611959228 Mon Sep 17 00:00:00 2001 From: "awilliam@xenbuild.aw" Date: Tue, 14 Mar 2006 12:38:49 -0700 Subject: [PATCH] [IA64] Fixed PGT and PGC flags This patch fixed PGT and PGC flags in include/asm-ia64/mm.h. It's same as x86_64. Please see the below. http://lists.xensource.com/archives/html/xen-ia64-devel/2006-03/msg00229.html http://lists.xensource.com/archives/html/xen-ia64-devel/2006-03/msg00235.html Signed-off-by: Masaki Kanno --- xen/include/asm-ia64/mm.h | 41 ++++++++++++++++++++++----------------- 1 file changed, 23 insertions(+), 18 deletions(-) diff --git a/xen/include/asm-ia64/mm.h b/xen/include/asm-ia64/mm.h index 1b06663434..0ef4d40b8a 100644 --- a/xen/include/asm-ia64/mm.h +++ b/xen/include/asm-ia64/mm.h @@ -78,41 +78,46 @@ struct page #define set_page_count(p,v) atomic_set(&(p)->_count, v - 1) -/* Still small set of flags defined by far on IA-64 */ +/* + * Still small set of flags defined by far on IA-64. + * IA-64 should make it a definition same as x86_64. + */ /* The following page types are MUTUALLY EXCLUSIVE. */ #define PGT_none (0<<29) /* no special uses of this page */ #define PGT_l1_page_table (1<<29) /* using this page as an L1 page table? */ #define PGT_l2_page_table (2<<29) /* using this page as an L2 page table? */ #define PGT_l3_page_table (3<<29) /* using this page as an L3 page table? */ #define PGT_l4_page_table (4<<29) /* using this page as an L4 page table? */ -#define PGT_writable_page (5<<29) /* has writable mappings of this page? */ -#define PGT_type_mask (5<<29) /* Bits 29-31. */ + /* Value 5 reserved. See asm-x86/mm.h */ + /* Value 6 reserved. See asm-x86/mm.h */ +#define PGT_writable_page (7<<29) /* has writable mappings of this page? */ +#define PGT_type_mask (7<<29) /* Bits 29-31. */ /* Has this page been validated for use as its current type? */ #define _PGT_validated 28 #define PGT_validated (1<<_PGT_validated) -/* Owning guest has pinned this page to its current type? */ + /* Owning guest has pinned this page to its current type? */ #define _PGT_pinned 27 #define PGT_pinned (1U<<_PGT_pinned) -/* The 11 most significant bits of virt address if this is a page table. */ -#define PGT_va_shift 16 -#define PGT_va_mask (((1U<<11)-1)<= xen_pstart)) -- 2.30.2